package ESCMP_EMPTYSTR;

public class Example {
    public boolean emptyCheck1(String s) {
        if (s.equals("")) return true;
        return false;
    }
    public boolean emptyCheck2(String s) {
        if ("".equals(s)) return true;
        return false;
    }
    // fixed code
    public boolean emptyCheck3(String s) {
        if (s.length() == 0) return true;
        return false;
    }
}
